<?php
namespace app\manage\model;
use think\Model;
use think\Db;
class Agency extends Model
{
	protected $resultSetType = 'collection';
    public function agentSel($manageid){
        $db = Db::name('agency')
            ->where('manageid',$manageid)
            ->select();
        return $db;
    }
    public static function getagents($manageid){
        $num = Db::name('agency')
            ->where('manageid',$manageid)
            ->count();
        return $num;
    }
}